package com.yunke.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 系统配置实体类
 * 
 * @author yunke
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yunke_config")
@Schema(name = "YunkeConfig", description = "系统配置实体")
public class YunkeConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "配置ID")
    private Long id;

    @Schema(description = "配置键名")
    private String configKey;

    @Schema(description = "配置值")
    private String configValue;

    @Schema(description = "配置名称")
    private String configName;

    @Schema(description = "配置分类")
    private String configCategory;

    @Schema(description = "配置类型（1字符串 2数字 3布尔 4JSON 5文件路径）")
    private Integer configType;

    @Schema(description = "配置描述")
    private String configDesc;

    @Schema(description = "默认值")
    private String defaultValue;

    @Schema(description = "可选值（JSON格式）")
    private String optionValues;

    @Schema(description = "验证规则")
    private String validationRule;

    @Schema(description = "是否系统配置（0否 1是）")
    private Boolean isSystem;

    @Schema(description = "是否必填（0否 1是）")
    private Boolean isRequired;

    @Schema(description = "是否启用（0否 1是）")
    private Boolean isEnabled;

    @Schema(description = "是否敏感信息（0否 1是）")
    private Boolean isSensitive;

    @Schema(description = "排序权重")
    private Integer sortWeight;

    @Schema(description = "配置组")
    private String configGroup;

    @Schema(description = "扩展信息（JSON格式）")
    private String extraInfo;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "状态（0正常 1删除）")
    private Integer status;

    @Schema(description = "创建时间")
    private Long createTime;

    @Schema(description = "更新时间")
    private Long updateTime;
} 